package com.sdhs.workflow.service.impl;

import com.sdhs.common.core.domain.R;
import com.sdhs.workflow.domain.UnifyPushLog;
import com.sdhs.workflow.mapper.UnifyPushLogMapper;
import com.sdhs.workflow.service.IUnifyPushLogService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@RequiredArgsConstructor
@Service
public class UnifyPushLogServiceImpl implements IUnifyPushLogService {

    @Autowired(required = false)
    private UnifyPushLogMapper unifyPushLogMapper;

    @Override
    public Boolean insert(UnifyPushLog log) {
        int cnt = unifyPushLogMapper.insert(log);
        return cnt == 1 ? true:false;
    }
}

